﻿using ConfExpert.Forms.Base;
using DevExpress.Utils;
using DevTeam;
using System;
using System.Drawing;

namespace ConfExpert.Forms.Depo.Cikis
{
    public partial class OPOnKabuluYapilmis : XForm
    {
        public OPOnKabuluYapilmis()
        {
            InitializeComponent();
        }

        private void OPlistesi_Load(object sender, EventArgs e)
        {
            gv.Init("GetOPlistesi");
            gv.AddSummary("Qty");
            gv.MakeColumnInvisible("ProductId");
            //gv.MakeColumnInvisible("RFIDset", "stGenelId", "Notes2", "KonstruksiyonId");
            gv.RowCellStyle += new DevExpress.XtraGrid.Views.Grid.RowCellStyleEventHandler(gv_RowCellStyle);

            gv.BestFitColumns();
        }

        void gv_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
        {
            if (e.RowHandle > -1)
                //if (gv.GetRowCellDisplayText(e.RowHandle, "Yuzdesi") != string.Empty)
                if(e.Column.FieldName == "RollId")
                    e.Appearance.Font = new Font(AppearanceObject.DefaultFont, FontStyle.Bold);
        }
    }
}